import service from './request.js';
export default{
    getMenuAllSrc(menuId) {
        return service({
            url: `/adscm/system/menu/getMenuAllSrc/${menuId}`, /**获取菜单权限 */
            method: 'get'
        })
    },
    /**系统管理 */
    codeType(){
        return service({
            url: '/adscm/system/codeType/select', /**码表列表 */
            method: 'get'
        })
    },
    deleteCode(id){
         return service({
             url: `/adscm/system/codeType/delete/${id}`, /**删除码表 */
             method: 'post'
         })
    },
    insertAndUpdateCode(type,data){
        return service({
            url: `/adscm/system/codeType/${type}`, /**insert-新增 update-编辑 码表 */
            method: 'post',
            data
        })
    },
    subCode(id) {
         return service({
             url: `/adscm/system/code/selectByCodeType/${id}`, /**子码表列表 */
             method: 'post'
         })
    },
    insertAndUpdateSubcode(type, data) {
        return service({
            url: `/adscm/system/code/${type}`, /**insert-新增 update-编辑 子码表 */
            method: 'post',
            data
        })
    },
    deleteSubcode(id){
        return service({
            url: `/adscm/system/code/delete/${id}`, /**删除子码表 */
            method: 'post'
        })
    },
    /**营运管理 */
    getDoctorData(){
        return service({
            url: '/adscm/application/bodyCheck/queryDoctor', /* 医生列表 */
            method: 'get',
            params:{id:4}
        })
    },
    getNurseData(){
        return service({
            url: '/adscm/system/user/queryUsersByRoleId/5', /* 护士列表 */
            method: 'get'
        })
    },
    getMachineCodeData(){
        return service({
            url: '/adscm/application/jzMachine/selectUseingMachine', /* 分配机列表 */
            method: 'get'
        })
    },

    getCodeData(id){
        return service({
            url: `/adscm/system/code/selectByCodeType/${id}`, /* 码表列表 */
            method: 'get'
        })
    },
    getMachineData(){
        return service({
            url: `/adscm/application/jzMachine/selectUseingMachine`, /* 机器编号列表 */
            method: 'get'
        })
    },
    login(data){
        return service({
            url: '/authentication/form', //登录接口
            method:'post',
            params: data
        })
    },
    loginOut(){
        return service({
            url: '/adscm/logout', //退出登录
            method: 'get'
        })
    },
    providerInfo(data){
        return service({
            url: '/adscm/application/providerInfo/selectProviderInfo', //获取建档记录列表
            method: 'post',
            data
        })
    },
    basicInfo(data){
        return service({
            url: '/adscm/application/bodyCheck/bodyCheckInfo', //浆员基本信息
            method:'get',
            params:data
        })
    },
    providerReg(data) {
        return service({
            url: '/adscm/application/providerReg/select', //获取登记记录列表
            method: 'post',
            data
        })
    },
    bodyCheckTime(data) {
         return service({
             url: '/adscm/application/bodyCheck/queryByTime', //获取体检记录列表
             method: 'get',
             params: data
         })
    },
    bodyCheckUpdate(data) {
        return service({
            url: '/adscm/application/bodyCheck/update', //修改体检记录
            method: 'post',
            data
        })
    },
    providerAllot(data) {
        return service({
            url: '/adscm/application/providerAllot/select', //获取分配记录列表
            method: 'post',
            data
        })
    },
    queryByPNoAndMNo(data) {
        return service({
            url: '/adscm/application/heatSeal/queryByPNoAndMNo', //获取热合记录列表
            method: 'get',
            params: data
        })
    },
    singleHeatseal(data) {
        return service({
            url: '/adscm/application/heatSeal/queryById', //当个热合记录查找
            method: 'get',
            params: data
        })
    },
    heatSealUpdate(data){
        return service({
            url: '/adscm/application/heatSeal/update', //热合记录修改
            method: 'post',
            data
        })
    },
    boxConfList() {
        return service({
            url: '/adscm/application/heatSeal/boxConf/query', //装箱单列表
            method: 'get',
        })
    },
    addBoxConf(data){
        return service({
            url: '/adscm/application/heatSeal/boxConf/insert', //新增装箱单配置
            method: 'post',
            data
        })
    },
    updateBoxConf(data) {
        return service({
            url: '/adscm/application/heatSeal/boxConf/update', //修改装箱单配置
            method: 'post',
            data
        })
    },
    deleteBoxConf(data) {
        return service({
            url: '/adscm/application/heatSeal/boxConf/delete', //删除装箱单配置
            method: 'get',
            params:data
        })
    },
    providerCollectionList(data){
        return service({
            url: '/adscm/application/providerCollection/selectProviderCollection', //获取采浆记录列表
            method: 'post',
            data
        })
    },
    providerCollectionSelectById(id) {
        return service({
            url: `/adscm/application/providerCollection/selectById/${id}`, //根据id查询采浆概要信息
            method: 'get'
        })
    },
    provisionConsumable(data) {
        return service({
            url: `/adscm/application/providerCollection/select/provisionConsumable/selectProvisionConsumable`, //根据日志号查询准备耗材
            method: 'get',
             params: data
        })
    },
    inputResource(data) {
        return service({
            url: `/adscm/application/providerCollection/select/inputResource/selectInputResource`, //查询输入资源
            method: 'get',
             params: data
        })
    },
    precharge(data) {
        return service({
            url: `/adscm/application/providerCollection/select/precharge/selectPrecharge`, //查询预冲
            method: 'get',
            params: data
        })
    },
    parameterSettings(data) {
        return service({
            url: `/adscm/application/providerCollection/select/parameterSettings/selectParameterSettings`, //查询参数设置
            method: 'get',
             params: data
        })
    },
    inflating(data) {
        return service({
            url: `/adscm/application/providerCollection/select/inflating/selectInflating`, //查询加压
            method: 'get',
            params:data
        })
    },
     collectingPlasmaEnd(data) {
         return service({
            url: `/adscm/application/providerCollection/select/collectingPlasmaEnd/selectCollectingPlasmaEnd`, //查询采浆结束
            method: 'get',
            params: data
         })
     },
     uninstallConsumable(data){
        return service({
            url: `/adscm/application/providerCollection/select/uninstallConsumable/selectUninstallConsumable`, //查询卸载耗材
            method: 'get',
            params: data
        })
     },
      selfCheck(data) {
          return service({
              url: `/adscm/application/providerCollection/select/selfCheck/selectSelfCheck`, //查询自检
              method: 'get',
            params: data
          })
      },
    providerCollectionProcess(data) {
         return service({
             url: `/adscm/application/providerCollection/select/providerCollectionProcess/selectProviderCollectionProcess`, //采浆过程概要
             method: 'get',
             params: data
         })
    },
    collectingPlasma(data) {
        return service({
            url: `/adscm/application/providerCollection/select/collectingPlasma/selectCollectingPlasma`, //采集环节
            method: 'get',
            params: data
        })
    },
    hsProcedure(data){
        return service({
            url: `/adscm/application/providerCollection/select/hsProcedure/selectHsProcedure`, //还输过程信息
            method: 'get',
            params: data
        })
   },
   deviceException(data) {
        return service({
            url: `/adscm/application/providerCollection/select/deviceException/selectDeviceException`, //机器异常
            method: 'get',
            params: data
        })
    },
    consumableException(data) {
        return service({
            url: `/adscm/application/providerCollection/select/consumableException/selectConsumableException`, //耗材异常
            method: 'get',
            params: data
        })
    },
    donatorException(data) {
        return service({
            url: `/adscm/application/providerCollection/select/donatorException/selectDonatorException`, //浆员异常
            method: 'get',
            params: data
        })
    },
    pushButton(data) {
        return service({
            url: `/adscm/application/providerCollection/select/pushButton/selectPushButton`, //按键记录
            method: 'get',
            params: data
        })
    },
    priodic(data){
        return service({
            url: `/adscm/application/providerCollection/select/periodic/selectPeriodic`, //周期性数据查询
            method: 'get',
            params: data
        })
    },
    selectProviderReg(registerNo) {
       return service({
           url: `/adscm/application/providerReg/selectProviderReg/${registerNo}`, //查询登记信息
           method: 'get'
       })
    },
    samplesList(data){
        return service({
            url: `/adscm/application/plasmaSamples/queryByNameAndNo`, //获取检验记录列表
            method: 'get',
            params:data
        })
    },
    plasmaSamplesUpdate(data) {
        return service({
            url: `/adscm/application/plasmaSamples/update`, //修改检验记录信息
            method: 'post',
            data
        })
    }
}
